let age = 20;
let _age = 20;
let $age = 20;
age == _age
console.log('🚀 - age == _age:', age == _age);    // true
console.log('🚀 - age === _age:', age === _age);  //false
console.log('🚀 - age == $age:', age == $age);    //true
console.log('🚀 - age === $age:', age === $age);  //true

// 其他类型转换为数值类型
console.log('🚀 - parseInt("20"):', parseInt("20"));
console.log('🚀 - parseInt("20Abc"):', parseInt("20Abc"));
console.log('🚀 - parseInt("A20abc"):', parseInt("A20abc"));
console.log('🚀 - "20":', "20");

//  其他类型转换为boolean类型
if (0) {
  console.log("0的转换结果");
}
if (100) {
  console.log("100的转换结果");
}
if ('1') {
  console.log("'1'的转换结果");
}
let str = "false";
console.log(str);
if (str) {
  console.log("代码执行");
}
//  0 NaN 转 boolean类型的结果是 false
// 其他数字 结果都是 true

var a = true;
var b = false;
var c = a + b;
var d = a + "1";
console.log('🚀 - d:', d)
console.log('🚀 - Number(true):', Number(true));
console.log('🚀 - Number(false):', Number(false));
console.log('🚀 - c:', c)
